package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Foodmaterial;
import org.springframework.dao.DataAccessException;

import java.math.BigDecimal;
import java.util.Set;

public interface FoodmaterialDAO extends JpaDao<Foodmaterial> {

	public Foodmaterial findFoodmaterialById(Integer id) throws DataAccessException;

	public Foodmaterial findFoodmaterialById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByName(String name) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByName(String name, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByNameContaining(String name_1) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByContent(BigDecimal content) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByContent(BigDecimal content, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByDescription(String description) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Foodmaterial findFoodmaterialByPrimaryKey(Integer id) throws DataAccessException;

	public Foodmaterial findFoodmaterialByPrimaryKey(Integer id, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialsByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Foodmaterial> findAllFoodmaterials() throws DataAccessException;

	public Set<Foodmaterial> findAllFoodmaterials(int startResult, int maxRows) throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialsByFood(Integer foodId, int start, int max);

	public Set<Foodmaterial> findFoodmaterialsByMaterial(Integer materialId, int start, int max);

	public Set<Foodmaterial> findFoodmaterialByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Foodmaterial> findFoodmaterialsByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Foodmaterial findFoodmaterialByPhysicalPrimaryKey(Integer foodId, Integer materialId, BigDecimal content)
			throws DataAccessException;

	public Foodmaterial findFoodmaterialByPhysicalPrimaryKey(Integer foodId, Integer materialId, BigDecimal content,
			int startResult, int maxRows) throws DataAccessException;
}
